package my_practice;

public class LearningJava2_2 {

	public static void main(String[] args) {
		System.out.println(2.0-1.1);
		int x=(int)34.89;
		System.out.println("x="+x);
		
		byte a=120;
		short b=130;
		int c=2200;
		long d=8000;
		float f;
		double g=0.1234567812345678;
		a=(byte)b;//导致精度的缺失
		c=(int)d;//未导致精度的缺失
		f=(float)g;//导致精度的缺失
		System.out.println("a="+a);
		System.out.println("c="+c);
		System.out.println("f="+f);
		System.out.println("g="+g);
	}

}
